-- GENERATED SPELL FOR [Ursal the Mauler] --


function spell0_2039(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2039', 646, 1)
end

function Sorts_2039(pUnit, Event)
local choix_sorts_2039 = math.random(0, 0)
if choix_sorts_2039 == 0 then
pUnit:RegisterEvent('spell0_2039', 1, 1)
end
end

function mob2039_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2039', math.random(1500, 3000), 1)
end

function mob2039_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2039_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2039_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2039, 1, 'mob2039_Action')
RegisterUnitEvent(2039, 2, 'mob2039_Leave')
RegisterUnitEvent(2039, 3, 'mob2039_Kill')
RegisterUnitEvent(2039, 4, 'mob2039_Die')
